package edu.sysu.cshare.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import edu.sysu.cshare.DAO.SubmitInfoDAO;
import edu.sysu.cshare.model.SubmitInfo;

@Service
public class SubmitInfoService {

	private SubmitInfoDAO submitInfoDAO;

	@Resource
	public void setSubmitInfoDAO(SubmitInfoDAO submitInfoDAO) {
		this.submitInfoDAO = submitInfoDAO;
	}

	public SubmitInfo get(long id) {
		return submitInfoDAO.get(id);
	}

	public void update(SubmitInfo submitInfo) {
		submitInfoDAO.update(submitInfo);
	}
	
}
